package com.zrong.gamesdk.test.integration.app;

import com.zrong.gamesdk.test.integration.thread.CommentReplyThread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * User: zyzcl54
 * Date: 12-7-12
 * Time: 下午16:53
 * To change this template use File | Settings | File Templates.
 */
public class CommentReplyApp {
    public static void main(String args[]) {
        try {
            CommentReply commentReply=new CommentReply();
            commentReply.setUserId(10001);
            commentReply.setReplyOrigin(OriginsType.GAME_HALL.getValue());
            commentReply.setCommentId(10001);
            commentReply.setReplyContent("说的对");
            commentReply.setReplyUserType(1);
            commentReply.setUserTel("18606199822");
            commentReply.setUserIp("192.168.1.261");
            ExecutorService pool = Executors.newFixedThreadPool(4);
            Runnable runnable1 = new CommentReplyThread(commentReply, 100);
            Runnable runnable2 = new CommentReplyThread(commentReply, 500);
            Runnable runnable3 = new CommentReplyThread(commentReply, 5000);
            Runnable runnable4 = new CommentReplyThread(commentReply, 4000);
            new Thread(runnable1).start();
//            new Thread(runnable2).start();
//            new Thread(runnable3).start();
//            new Thread(runnable4).start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
